package com.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.question.common.PageResult;
import com.question.entity.Paper;
import com.question.entity.User;
import org.springframework.stereotype.Service;

@Service
public interface PaperService extends IService<Paper> {
    void add(String name, String description, String cover);

    PageResult getByPage(Integer pageNo, Integer pageSize, String keyword);

    void edit(Paper paper);

    void delete(Integer id);

    void publish(Integer id);

    Paper getdetail(Integer id);
}
